package jps_s10996_s7175.result;

import jps_s10996_s7175.utils.IPrintable;
import edu.pjwstk.jps.result.IDoubleResult;

public class DoubleResult extends SimpleResult<Double> implements
		IDoubleResult, IPrintable {

	public DoubleResult(Double obj) {
		super(obj);
	}

	@Override
	public Double getValue() {
		return (obj);
	}

	@Override
	public String stringme() {
		return Double.toString(getValue());
	}

	@Override
	public String toString() {
		return Double.toString(getValue());
	}
	
	@Override
	public int compareTo(SingleResult o) {
		if ( o instanceof DoubleResult ) {
			return this.getValue().compareTo(((DoubleResult)o).getValue());
		} else {
			return -1;
		}
		
	}

}
